import java.util.Scanner;

public class Employee {
    int id;
    String name;
    double salary;
    public double countSalary(double sales){
        if (sales<100000){
            return salary+sales*0.01;
        }else if (sales>=100000 && sales<200000){
            return salary+sales*0.02;
        }else{
            return salary+sales*0.03;
        }
    }
    public void showInfo(){
        Depaetment department=new Depaetment();
        department.name="销售部";
        System.out.println("员工信息\t员工编号:"+this.id+"\t姓名:"+this.name
                +"\t底薪"+salary+"\t所在部门:"+department.name);
    }

    public static void main(String[] args) {
        Depaetment depaetment=new Depaetment();
        Employee employee=new Employee();
        depaetment.id=0001;
        depaetment.name="销售部";

        employee.id=0033;
        employee.name="郭德纲";
        employee.salary=2000;
        employee.showInfo();
        employee.showInfo();
          Scanner input=new Scanner(System.in);

         System.out.print("请输入"+employee.name+"本月销售额:");
        double money=input.nextDouble();
        double m=employee.countSalary(money);
        System.out.println(employee.name+"本月的工资为:"+m);
        }
        }
